<template>
    <dir>
        <div class="mui-numbox"  data-numbox-min="1" data-numbox-max="100">
        <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
        <input class="mui-numbox-input" type="number" value="1" @change="fn" ref="nubTxt">
        <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
      </div>
    </dir>
</template>
<script>
import mui from "../../../../node_modules/mui/js/mui";
export default {
    data() {
        return {

        }
    },
    methods : {
        fn() {
            this.$emit('foucs',parseInt(this.$refs.nubTxt.value))
        }
    },
     mounted () {
        mui(".mui-numbox").numbox()
    },
    
}
</script>
<style>

</style>

